#region Developer's comment header
/* aspnet_ApplicationsSearcher.cs
 * 
 * author:    DS2171
 * copyright: DS2171
 * 
 * history:   15/11/2010 17.25.13, DS2171: Created.
 *
 */
#endregion
#region Using directives

using System;
using System.Collections.Generic;
using System.Text;
using Chili.Opf3;
using Chili.Opf3.Query;


#endregion

namespace DocManagerORM.Entità
{
	/// <summary>
	/// Searcher object for the "aspnet_Applications" persistent.
	/// </summary>
	public partial class aspnet_ApplicationsSearcher : ObjectSearcher<aspnet_Applications>
	{
		/// <summary>
		/// Creates an instance of the aspnet_ApplicationsSearcher Class.
		/// </summary>
		/// <param name="context">The ObjectContext instance associated with the searcher.</param>
		public aspnet_ApplicationsSearcher(ObjectContext context) : base(context)
		{
		}

		/// <summary>
		/// Returns all aspnet_Applications sorted by the sort argument.
		/// </summary>
		/// <param name="sort">The comma delimited list of fields composing the sort-key.</param>
		public ObjectSet<aspnet_Applications> FindAllSortedBy(string sort)
		{
			return base.FindAll("SortBy " + sort);
		}

		/// <summary>
		/// Returns aspnet_Applications filtered by key.
		/// </summary>
		/// <param name="loweredapplicationname"></param>
		public ObjectSet<aspnet_Applications> GetByaspnet_Applications_Index(string loweredapplicationname)
		{
			// Build the query.
			string query = "LoweredApplicationName = {0}";


			// Create an object query and specify the query.
			ObjectQuery<aspnet_Applications> oQuery = new ObjectQuery<aspnet_Applications>(query, loweredapplicationname);

			return Context.GetObjectSet<aspnet_Applications>(oQuery);
		}

		/// <summary>
		/// Returns aspnet_Applications filtered by key.
		/// </summary>
		/// <param name="applicationid"></param>
		public aspnet_Applications GetByPK__aspnet_Applicati__2D27B809(Guid applicationid)
		{
			// Build the query.
			string query = "ApplicationId = {0}";


			// Create an object query and specify the query.
			ObjectQuery<aspnet_Applications> oQuery = new ObjectQuery<aspnet_Applications>(query, applicationid);

			return Context.GetObject<aspnet_Applications> (oQuery);
		}

		/// <summary>
		/// Returns aspnet_Applications filtered by key.
		/// </summary>
		/// <param name="loweredapplicationname"></param>
		public ObjectSet<aspnet_Applications> GetByUQ__aspnet_Applicati__2E1BDC42(string loweredapplicationname)
		{
			// Build the query.
			string query = "LoweredApplicationName = {0}";


			// Create an object query and specify the query.
			ObjectQuery<aspnet_Applications> oQuery = new ObjectQuery<aspnet_Applications>(query, loweredapplicationname);

			return Context.GetObjectSet<aspnet_Applications>(oQuery);
		}

		/// <summary>
		/// Returns aspnet_Applications filtered by key.
		/// </summary>
		/// <param name="applicationname"></param>
		public ObjectSet<aspnet_Applications> GetByUQ__aspnet_Applicati__2F10007B(string applicationname)
		{
			// Build the query.
			string query = "ApplicationName = {0}";


			// Create an object query and specify the query.
			ObjectQuery<aspnet_Applications> oQuery = new ObjectQuery<aspnet_Applications>(query, applicationname);

			return Context.GetObjectSet<aspnet_Applications>(oQuery);
		}

	}
}
